# -*- mode: python -*-

Import("env")

env.Library(
    target='lock_mgr',
    source=[
        'd_concurrency.cpp',
        'lock_mgr_new.cpp',
        'lock_stat.cpp',
        'lock_state.cpp',
        'yield.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base/base',
        '$BUILD_DIR/mongo/foundation',
        '$BUILD_DIR/mongo/global_environment_experiment',
        "$BUILD_DIR/mongo/server_parameters",
        '$BUILD_DIR/mongo/spin_lock',
        '$BUILD_DIR/third_party/shim_boost',
    ],
)

env.CppUnitTest(
    target='lock_mgr_test',
    source=['d_concurrency_test.cpp',
            'fast_map_noalloc_test.cpp',
            'lock_mgr_new_test.cpp',
            'lock_state_test.cpp',
    ],
    LIBDEPS=[
        'lock_mgr'
    ]
)
